package com.cote.douhahou.pretloan.any.http

import java.sql.DriverManager.println
import java.util.concurrent.BlockingQueue
import java.util.concurrent.ThreadPoolExecutor
import java.util.concurrent.TimeUnit


class AkomapalendHttpPoolExecutor(
    corePoolSize_akomapalend: Int,
    maximumPoolSize_akomapalend: Int,
    keepAliveTime_akomapalend: Long,
    unit_akomapalend: TimeUnit?,
    workQueue_akomapalend: BlockingQueue<Runnable>?
) : ThreadPoolExecutor(corePoolSize_akomapalend, maximumPoolSize_akomapalend, keepAliveTime_akomapalend, unit_akomapalend, workQueue_akomapalend) {

    override fun beforeExecute(t: Thread?, r: Runnable?) {
        super.beforeExecute(t, r)
        println("Thread:${t?.name} Read")
    }

    override fun afterExecute(r: Runnable?, t: Throwable?) {
        super.afterExecute(r, t)
        println("Thread:${Thread.currentThread().name} Finish")
    }

    override fun terminated() {
        super.terminated()
        println("Thread:Finish")
    }
}